package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * C币操作日志表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Cmoneylog extends Model<Cmoneylog> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 操作的C币
     */
    private Integer money;

    /**
     * 枚举增加increase减少reduce
     */
    private String action;

    /**
     * 剩余C币
     */
    private Integer surplus;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 操作人名称
     */
    private String createUser;

    /**
     * 操作人ID
     */
    private String createUserId;

    /**
     * 所属俱乐部ID
     */
    private String clubId;


    public static final String ID = "id";

    public static final String MONEY = "money";

    public static final String ACTION = "action";

    public static final String SURPLUS = "surplus";

    public static final String CREATE_TIME = "create_time";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_USER_ID = "create_user_id";

    public static final String CLUB_ID = "club_id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
